
<div id="dcLeft">
    <div id="menu">
        <?php foreach($top_level_menu as $menu_item):?>
        <ul class="top">
            <li>
                <?php 
                $menu_url=$menu_item->child==1?site_url('admin/menu/menulist/'.$menu_item->menuid):site_url('admin/'.$menu_item->menu_control.'/'.$menu_item->menu_action.($menu_item->page_type==1?'list':'info').'/'.$menu_item->menuid);
                ?>
                <a href="<?php echo $menu_url?>"><i class="articleCat"></i><em><?php echo $menu_item->title?></em></a>
                <div class="edit_menu"><a>编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a>删除</a></div>
            </li>
        </ul>
        <?php endforeach;?>
        <?php if($user_authority==1):?>
        <ul class="top">
            <li><a href="javascript:manage_menu()"><i class="article"></i><em>导航栏目管理</em></a></li>
        </ul>
        <?php endif;?>
    </div>
</div>
